国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Ubuntu 16.04+、Debian 8+、CentOS 7+
export function mergeRefs(refs) { | |
return (value) => { | |
refs.forEach((ref) => { | |
if (typeof ref === "function") { | |
ref(value); | |
} else if (ref != null) { | |
ref.current = value; | |
} | |
}); | |
}; |
src=$1 | |
dest=$2 | |
current_directory=$(pwd) | |
cd $src | |
stashes=$(git stash list) | |
IFS=$'\n' | |
stash_messages=() | |
for stash in $stashes; do |
const { command, isPrivate, getBuffer } = require("../lib/"); | |
const config = require("../config"); | |
// Edit here 👇🏿🌸 | |
let title = "𝗜𝗭𝗨𝗠𝗜-𝗫𝗗" | |
let body = "𝗛𝗲𝘆 𝗜𝘇𝘂𝗺𝗶 𝗶𝘀 𝗔𝗹𝗶𝘃𝗲🧚♂️" | |
let sourceUrl = "github.com/sataniceypz/Izumi-v2" | |
let mediaUrl = "github.com/sataniceypz/Izumi-v2" | |
let mediaType = 1 |
#Working example: http://pythonfiddle.com/crc-16-calculation | |
def GetCrc16(strHexData): | |
crc16tab = ( | |
0x0000, 0x1189, 0x2312, 0x329B, 0x4624, 0x57AD, 0x6536, 0x74BF, | |
0x8C48, 0x9DC1, 0xAF5A, 0xBED3, 0xCA6C, 0xDBE5, 0xE97E, 0xF8F7, | |
0x1081, 0x0108, 0x3393, 0x221A, 0x56A5, 0x472C, 0x75B7, 0x643E, | |
0x9CC9, 0x8D40, 0xBFDB, 0xAE52, 0xDAED, 0xCB64, 0xF9FF, 0xE876, | |
0x2102, 0x308B, 0x0210, 0x1399, 0x6726, 0x76AF, 0x4434, 0x55BD, | |
0xAD4A, 0xBCC3, 0x8E58, 0x9FD1, 0xEB6E, 0xFAE7, 0xC87C, 0xD9F5, |
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Ubuntu 16.04+、Debian 8+、CentOS 7+
Some notes and tools on fingerprinting minified JavaScript libraries, AST fingerprinting, source code similarity, etc.
Some notes on video editors.
set -e | |
defaults write com.apple.dt.Xcode DVTTextEditorTrimTrailingWhitespace -bool YES | |
defaults write com.apple.dt.Xcode DVTTextEditorTrimWhitespaceOnlyLines -bool YES | |
defaults write com.apple.dt.Xcode DVTTextIndentTabWidth -int 2 | |
defaults write com.apple.dt.Xcode DVTTextIndentWidth -int 2 | |
defaults write com.apple.dt.Xcode DVTTextPageGuideLocation -int 100 |
;;; Directory Local Variables | |
;;; For more information see (info "(emacs) Directory Variables") | |
;;; Commentary: | |
;; .dir-locals.el for use with the Emacs Eglot LSP client and | |
;; python-lsp-server (pylsp) LSP server v1.10.0. | |
;; Default values in accordance with | |
;; https://github.com/python-lsp/python-lsp-server/blob/v1.10.0/CONFIGURATION.md |
sudo apt install --reinstall python3
sudo apt install --reinstall python
`` sudo update-alternatives --remove-all python